package com.jhws.sys.menu.bo;

import com.jhws.common.base.bo.BaseBo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Table(name="tbl_menu_dim")
@Entity
public class TblMenuDimBo extends BaseBo {

    public TblMenuDimBo() {
    }

    public TblMenuDimBo(String menuCode, String permission) {
        this.menuCode = menuCode;
        this.permission = permission;
    }

	public TblMenuDimBo(String menuCode, String permission, Integer type) {
		this.menuCode = menuCode;
		this.permission = permission;
		this.type = type;
	}

	/**
	 * 序列化
	 */
	private static final long serialVersionUID = 565735262899074431L;

	public static final String RESI_GRPID = "3402223969890";
	@Id
    @Column(name = "menu_code")
	private String menuCode;

    @Column(name = "menu_name")
	private String menuName;

    @Column(name = "menu_lev")
	private String menuLev;

    @Column(name = "menu_par")
	private String menuPar;

    @Column(name = "menu_url")
	private String menuUrl;

    @Column(name = "menu_icon")
	private String menuIcon;

    @Column(name = "menu_view")
	private String menuView;
    /* 排序号 */
    @Column(name = "menu_index",columnDefinition = "INTEGER UNSIGNED default 0")
	private Integer menuIndex;
    @Column(name = "menu_exp")
	private String menuExp;
    /* 权限字段 */
	private String permission;

	/* 资源类型 */
    @Column(columnDefinition = "INTEGER UNSIGNED default 0")
	private Integer type;
	/**
	 * @return the menuCode
	 */
	public String getMenuCode() {
		return menuCode;
	}
	/**
	 * @param menuCode the menuCode to set
	 */
	public void setMenuCode(String menuCode) {
		this.menuCode = menuCode;
	}
	
	public String getMenuIcon() {
		return menuIcon;
	}
	public void setMenuIcon(String menuIcon) {
		this.menuIcon = menuIcon;
	}
	/**
	 * @return the menuName
	 */
	public String getMenuName() {
		return menuName;
	}
	/**
	 * @param menuName the menuName to set
	 */
	public void setMenuName(String menuName) {
		this.menuName = menuName;
	}
	/**
	 * @return the menuLev
	 */
	public String getMenuLev() {
		return menuLev;
	}
	/**
	 * @param menuLev the menuLev to set
	 */
	public void setMenuLev(String menuLev) {
		this.menuLev = menuLev;
	}
	/**
	 * @return the menuPar
	 */
	public String getMenuPar() {
		return menuPar;
	}
	/**
	 * @param menuPar the menuPar to set
	 */
	public void setMenuPar(String menuPar) {
		this.menuPar = menuPar;
	}
	/**
	 * @return the menuUrl
	 */
	public String getMenuUrl() {
		return menuUrl;
	}
	/**
	 * @param menuUrl the menuUrl to set
	 */
	public void setMenuUrl(String menuUrl) {
		this.menuUrl = menuUrl;
	}
	/**
	 * @return the menuView
	 */
	public String getMenuView() {
		return menuView;
	}
	/**
	 * @param menuView the menuView to set
	 */
	public void setMenuView(String menuView) {
		this.menuView = menuView;
	}
	/**
	 * @return the menuExp
	 */
	public String getMenuExp() {
		return menuExp;
	}
	/**
	 * @param menuExp the menuExp to set
	 */
	public void setMenuExp(String menuExp) {
		this.menuExp = menuExp;
	}

    public Integer getMenuIndex() {
        return menuIndex;
    }

    public void setMenuIndex(Integer menuIndex) {
        this.menuIndex = menuIndex;
    }

    public String getPermission() {
        return permission;
    }

    public void setPermission(String permission) {
        this.permission = permission;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
}
